package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 采集商品上传测试任务业务对象 erp_collect_product_upload_test_task
 *
 * @author erp
 * @date 2023-05-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductUploadTestTaskBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long id;

    /**
     * 采集商品id
     */
    @NotNull(message = "采集商品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long collectProductId;

    /**
     * 使用店铺
     */
    @NotNull(message = "使用店铺不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 错误信息
     */
    @NotBlank(message = "错误信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 采集时间
     */
    @NotNull(message = "采集时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date addTime;

    /**
     * 类型
     */
    private String type;


}
